<?php
/** @noinspection PhpPropertyCanBeReadonlyInspection */
declare(strict_types=1);

namespace Dreamcat\ApiDoc\Annotations;

use Attribute;
use JetBrains\PhpStorm\Immutable;

/**
 * 枚举描述
 * @author vijay
 */
#[Attribute(Attribute::TARGET_CLASS_CONSTANT)]
#[Immutable]
class EnumDesc
{
    /**
     * @param string $title 枚举描述
     */
    public function __construct(private string $title)
    {
    }

    /**
     * @return string 枚举描述
     */
    public function getTitle(): string
    {
        return $this->title;
    }
}

# end of file
